﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NetworkData.Spider;

namespace NetworkData.Host
{
    class Program
    {
        static void Main(string[] args)
        {
            var spider = new Spider.Spider();
            spider.OutputPath = "D:\\b";
            spider.Report += spider_Report;
            spider.Start(new Uri("http://www.dianping.com"), 30);
            Console.ReadKey();
        }

        static void spider_Report(object sender, ReportToEventArgs e)
        {
            Console.WriteLine("当前处理URL：" + e.Name + ",已处理数量：" + e.Count);
        }
    }
}
